package com.xiaoshangkou.hellopra.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoshangkou.hellopra.pojo.Post;

import java.util.List;

public interface PostMapper extends BaseMapper<Post> {
    List<Post> findAllPost();
    List<Post> findAllLife(Integer cid);
    List<Post> findByTitle(String title);
    List<Post> findPostByMid(Integer mid);
    int findPidByTitle(String title);
    Post findPostByPid(Integer pid);
}
